package cn.tedu.springmvc01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Arrays;

@Controller
@ResponseBody
public class UserController {
    @RequestMapping("/login")
    public String login(String username,String password){
        System.out.println("login方法执行了");
        return "当前在测试输入的用户名为："+username+" 输入的密码："+password;
    }

    @ResponseBody
    @RequestMapping("/like")
    public String like(String[] likes){
        return Arrays.toString(likes);
    }


}
